Successor rules for flipping pancakes and burnt pancakes

نویسندگان

  • Joe Sawada
  • Aaron Williams
چکیده

A stack of n pancakes can be rearranged in all n! ways by a sequence of n!−1 flips, and a stack of n ‘burnt’ pancakes can be rearranged in all 2nn! ways by a sequence of 2nn!−1 flips. In both cases, a computer program can efficiently generate suitable solutions. We approach these tasks instead from a human perspective. How can we determine the next flip directly from the current stack? How can we flip the minimum or maximum number of (burnt) pancakes overall? What if we are only allowed to flip the top n−2, n−1, or n (burnt) pancakes? We answer the first question with simple successor rules that take worstcase O(n)-time and amortized O(1)-time. Then we answer the second question exactly for minimization, and provide conjectures for maximization. For the third question, we prove that solutions almost certainly exist for pancakes and burnt pancakes using only these three flips. More broadly, we discuss how efficiency and optimality can shape iterative solutions to Hamilton cycle problems in highly symmetric graphs.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Greedy flipping of pancakes and burnt pancakes

We prove that a stack of n pancakes is rearranged in all n! ways by repeatedly applying the following rule: Flip the maximum number of pancakes that gives a new stack. This complements the previously known pancake flipping Gray code (S. Zaks, A New Algorithm for Generation of Permutations BIT 24 (1984), 196–204) which we also describe as a greedy algorithm: Flip the minimum number of pancakes t...

متن کامل

Pancake Flipping Is Hard

Pancake Flipping is the problem of sorting a stack of pancakes of different sizes (that is, a permutation), when the only allowed operation is to insert a spatula anywhere in the stack and to flip the pancakes above it (that is, to perform a prefix reversal). In the burnt variant, one side of each pancake is marked as burnt, and it is required to finish with all pancakes having the burnt side d...

متن کامل

Computing with living hardware

Our multi-institutional team of eleven undergraduates, one high school student, one postdoctoral fellow, and four faculty members explored the emerging field of synthetic biology and presented our results at the 2006 international Genetically Engineered Machine (iGEM) competition. Having had little or no previous research experience, biology, chemistry and mathematics students from four differe...

متن کامل

Polynomial-time sortable stacks of burnt pancakes

Pancake flipping, a famous open problem in computer science, can be formalised as the problem of sorting a permutation of positive integers using as few prefix reversals as possible. In that context, a prefix reversal of length k reverses the order of the first k elements of the permutation. The burnt variant of pancake flipping involves permutations of signed integers, and reversals in that ca...

متن کامل

Fortuitous sequences of flips of the top of a stack of n burnt pancakes for all n>24

Fortuitous sequences of flips of the top of a stack of n burnt pancakes for all n > 24. Summary Burnt pancakes problem was defined by Gates and Papadimitriou in 1979. They proved that g(−f n) ≥ 3n/2 − 1. In 1995 Cohen and Blum conjectured that g(n) = g(−I n) and proved that g(−I n) = g(−f n) + 1 ≥ 3n/2.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Theor. Comput. Sci.

دوره 609  شماره 

صفحات  -

تاریخ انتشار 2016